import React, { forwardRef } from 'react';
import { Input, Button } from "antd"
const Index = forwardRef(({ submit }, ref) => {
    return (
        <div style={{ display: 'flex', width: '500px', justifyContent: 'center', alignItems: 'center' }}>
            TodoList<Input allowClear ref={ref} />
            <Button type="primary" onClick={submit}>提交</Button>
        </div>
    );
})

export default Index;
